.class Lcom/example/inshopbuy/InShopOrdersAdapter$3;
.super Ljava/lang/Object;
.source "InShopOrdersAdapter.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/example/inshopbuy/InShopOrdersAdapter;->deletOrder(Ljava/lang/String;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/example/inshopbuy/InShopOrdersAdapter;

.field private final synthetic val$orderid:Ljava/lang/String;


# direct methods
.method constructor <init>(Lcom/example/inshopbuy/InShopOrdersAdapter;Ljava/lang/String;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lcom/example/inshopbuy/InShopOrdersAdapter$3;->this$0:Lcom/example/inshopbuy/InShopOrdersAdapter;

    iput-object p2, p0, Lcom/example/inshopbuy/InShopOrdersAdapter$3;->val$orderid:Ljava/lang/String;

    .line 149
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 11

    .prologue
    .line 154
    iget-object v8, p0, Lcom/example/inshopbuy/InShopOrdersAdapter$3;->this$0:Lcom/example/inshopbuy/InShopOrdersAdapter;

    # getter for: Lcom/example/inshopbuy/InShopOrdersAdapter;->context:Landroid/content/Context;
    invoke-static {v8}, Lcom/example/inshopbuy/InShopOrdersAdapter;->access$2(Lcom/example/inshopbuy/InShopOrdersAdapter;)Landroid/content/Context;

    move-result-object v8

    const-string v9, "userInfo"

    const/4 v10, 0x0

    invoke-virtual {v8, v9, v10}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v4

    .line 155
    .local v4, "sPreferences":Landroid/content/SharedPreferences;
    const-string v8, "uid"

    const-string v9, ""

    invoke-interface {v4, v8, v9}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    .line 156
    .local v6, "uid":Ljava/lang/String;
    const-string v8, "pass"

    const-string v9, ""

    invoke-interface {v4, v8, v9}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    .line 158
    .local v3, "pwd":Ljava/lang/String;
    new-instance v8, Ljava/lang/StringBuilder;

    iget-object v9, p0, Lcom/example/inshopbuy/InShopOrdersAdapter$3;->this$0:Lcom/example/inshopbuy/InShopOrdersAdapter;

    # getter for: Lcom/example/inshopbuy/InShopOrdersAdapter;->m:Lmyapp/MyApp;
    invoke-static {v9}, Lcom/example/inshopbuy/InShopOrdersAdapter;->access$3(Lcom/example/inshopbuy/InShopOrdersAdapter;)Lmyapp/MyApp;

    move-result-object v9

    invoke-virtual {v9}, Lmyapp/MyApp;->getWebConfig()Ljava/lang/String;

    move-result-object v9

    invoke-static {v9}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v9

    invoke-direct {v8, v9}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v9, "/index.php?ctrl=app&action=delyhorder&orderid="

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    .line 159
    iget-object v9, p0, Lcom/example/inshopbuy/InShopOrdersAdapter$3;->val$orderid:Ljava/lang/String;

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    const-string v9, "&uid="

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    invoke-virtual {v8, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    const-string v9, "&pwd="

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    invoke-virtual {v8, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    const-string v9, "&datatype=json"

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    .line 158
    invoke-virtual {v8}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v7

    .line 161
    .local v7, "url":Ljava/lang/String;
    const-string v8, "deletorderdata----------"

    invoke-static {v8, v7}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 163
    iget-object v8, p0, Lcom/example/inshopbuy/InShopOrdersAdapter$3;->this$0:Lcom/example/inshopbuy/InShopOrdersAdapter;

    # getter for: Lcom/example/inshopbuy/InShopOrdersAdapter;->m:Lmyapp/MyApp;
    invoke-static {v8}, Lcom/example/inshopbuy/InShopOrdersAdapter;->access$3(Lcom/example/inshopbuy/InShopOrdersAdapter;)Lmyapp/MyApp;

    move-result-object v8

    invoke-static {v7, v8}, LPlugclass/HttpConn;->getStr(Ljava/lang/String;Lmyapp/MyApp;)Ljava/lang/String;

    move-result-object v5

    .line 165
    .local v5, "str":Ljava/lang/String;
    :try_start_0
    new-instance v2, Lorg/json/JSONObject;

    invoke-direct {v2, v5}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    .line 167
    .local v2, "object":Lorg/json/JSONObject;
    const-string v8, "error"

    invoke-virtual {v2, v8}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v8

    const-string v9, "true"

    invoke-virtual {v8, v9}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v8

    if-eqz v8, :cond_0

    .line 168
    new-instance v1, Landroid/os/Message;

    invoke-direct {v1}, Landroid/os/Message;-><init>()V

    .line 169
    .local v1, "message":Landroid/os/Message;
    const/4 v8, 0x1

    iput v8, v1, Landroid/os/Message;->arg1:I

    .line 170
    const-string v8, "msg"

    invoke-virtual {v2, v8}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v8

    iput-object v8, v1, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 171
    iget-object v8, p0, Lcom/example/inshopbuy/InShopOrdersAdapter$3;->this$0:Lcom/example/inshopbuy/InShopOrdersAdapter;

    # getter for: Lcom/example/inshopbuy/InShopOrdersAdapter;->h:Landroid/os/Handler;
    invoke-static {v8}, Lcom/example/inshopbuy/InShopOrdersAdapter;->access$4(Lcom/example/inshopbuy/InShopOrdersAdapter;)Landroid/os/Handler;

    move-result-object v8

    invoke-virtual {v8, v1}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    .line 198
    .end local v2    # "object":Lorg/json/JSONObject;
    :goto_0
    return-void

    .line 175
    .end local v1    # "message":Landroid/os/Message;
    .restart local v2    # "object":Lorg/json/JSONObject;
    :cond_0
    const-string v8, "msg"

    invoke-virtual {v2, v8}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v8

    if-eqz v8, :cond_1

    .line 176
    new-instance v1, Landroid/os/Message;

    invoke-direct {v1}, Landroid/os/Message;-><init>()V

    .line 177
    .restart local v1    # "message":Landroid/os/Message;
    const/4 v8, 0x2

    iput v8, v1, Landroid/os/Message;->arg1:I

    .line 178
    iget-object v8, p0, Lcom/example/inshopbuy/InShopOrdersAdapter$3;->this$0:Lcom/example/inshopbuy/InShopOrdersAdapter;

    # getter for: Lcom/example/inshopbuy/InShopOrdersAdapter;->h:Landroid/os/Handler;
    invoke-static {v8}, Lcom/example/inshopbuy/InShopOrdersAdapter;->access$4(Lcom/example/inshopbuy/InShopOrdersAdapter;)Landroid/os/Handler;

    move-result-object v8

    invoke-virtual {v8, v1}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    .line 190
    .end local v1    # "message":Landroid/os/Message;
    .end local v2    # "object":Lorg/json/JSONObject;
    :catch_0
    move-exception v0

    .line 191
    .local v0, "e":Lorg/json/JSONException;
    invoke-virtual {v0}, Lorg/json/JSONException;->printStackTrace()V

    .line 192
    new-instance v1, Landroid/os/Message;

    invoke-direct {v1}, Landroid/os/Message;-><init>()V

    .line 193
    .restart local v1    # "message":Landroid/os/Message;
    const/4 v8, 0x3

    iput v8, v1, Landroid/os/Message;->arg1:I

    .line 194
    iget-object v8, p0, Lcom/example/inshopbuy/InShopOrdersAdapter$3;->this$0:Lcom/example/inshopbuy/InShopOrdersAdapter;

    # getter for: Lcom/example/inshopbuy/InShopOrdersAdapter;->h:Landroid/os/Handler;
    invoke-static {v8}, Lcom/example/inshopbuy/InShopOrdersAdapter;->access$4(Lcom/example/inshopbuy/InShopOrdersAdapter;)Landroid/os/Handler;

    move-result-object v8

    invoke-virtual {v8, v1}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    goto :goto_0

    .line 182
    .end local v0    # "e":Lorg/json/JSONException;
    .end local v1    # "message":Landroid/os/Message;
    .restart local v2    # "object":Lorg/json/JSONObject;
    :cond_1
    :try_start_1
    new-instance v1, Landroid/os/Message;

    invoke-direct {v1}, Landroid/os/Message;-><init>()V

    .line 183
    .restart local v1    # "message":Landroid/os/Message;
    const/4 v8, 0x5

    iput v8, v1, Landroid/os/Message;->arg1:I

    .line 184
    const-string v8, "msg"

    invoke-virtual {v2, v8}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v8

    iput-object v8, v1, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 186
    iget-object v8, p0, Lcom/example/inshopbuy/InShopOrdersAdapter$3;->this$0:Lcom/example/inshopbuy/InShopOrdersAdapter;

    # getter for: Lcom/example/inshopbuy/InShopOrdersAdapter;->h:Landroid/os/Handler;
    invoke-static {v8}, Lcom/example/inshopbuy/InShopOrdersAdapter;->access$4(Lcom/example/inshopbuy/InShopOrdersAdapter;)Landroid/os/Handler;

    move-result-object v8

    invoke-virtual {v8, v1}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z
    :try_end_1
    .catch Lorg/json/JSONException; {:try_start_1 .. :try_end_1} :catch_0

    goto :goto_0
.end method
